<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>修改用户信息.jsp</title>


<script type="text/javascript" src="qiang/zgq/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="qiang/zgq/css/cal.css"  type="text/css" />
<script src="qiang/zgq/js/cal.js" type="text/javascript" charset="gbk"></script>




<script type="text/javascript">
	$(function(){
		$("table tr:odd").css("background-color","#FFFFFF");
	});
</script>

<style type="text/css">
	#t_1 .td1{width: 120px;height: 18px;font-size: 14px;font-weight: bolder;}
	#t_1 .td2 input{width: 188px;height: 25px;}
	#t_1 .td3{color: red;}
</style>

</head>

<body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left_use.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px; ;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
			<div id="h11" style="width:782px;">
				<form action="updateUsers" method="post">
					<div style="margin-top: 10px;margin-left: 22px;font-size: 14px;">
						<span>系统设置</span> <span>>></span> <span><a>用户管理</a>
						</span> <span>>></span> <span><a>修改用户信息</a>
						</span>
					</div>

					<div style="margin-top: 60px;margin-left: 175px;"  id="t_1">
						<table style="border: none;border-spacing: 15px;">
							<tr>
								<td class="td1">用户编码：</td>
								<td class="td2">
									<input type="hidden" name="users.id" value="${users.id}"/>
									<input type="text" name="users.code" value="${users.code}"/>
								</td>
								<td class="td3">&nbsp;&nbsp;*</td>
							</tr>
							<tr>
								<td class="td1">用户名称：</td>
								<td class="td2"><input type="text" name="users.username" value="${users.username}"/>
								</td>
								<td class="td3">&nbsp;&nbsp;*</td>
							</tr>
							<tr>
								
								<td class="td1">密码</td>
								<td class="td2"><input type="text" name="users.pwd" value="${users.pwd}"/>
								</td>
								<td class="td3">&nbsp;&nbsp;*</td>
							</tr>
							<tr>
								<td class="td1">用户角色：</td>
								<td class="td2"><select name="jueseId" style="width: 188px;height: 25px;text-align: center;">
										<option value="0">--请选择--</option>
										<c:forEach items="${listjJueses}" var="i">
											<option <c:if test="${i.id==jueseId}">selected</c:if> value="${i.id}">${i.jname}</option>
										</c:forEach>
								</select></td>
								<td class="td3">&nbsp;&nbsp;*</td>
							</tr>
							<tr>
								<td class="td1">所属部门：</td>
								<td class="td2"><select  name="deptId" style="width: 188px;height: 25px;text-align: center;">
										<option value="0">--请选择--</option>
										<c:forEach items="${listdeDepts}" var="i">
											<option <c:if test="${i.id==deptId}">selected</c:if> value="${i.id}">${i.dname}</option>
										</c:forEach>
								</select>
								</td>
								<td class="td3">&nbsp;&nbsp;*</td>
							</tr>
							<tr>
								<td class="td1">联系电话：</td>
								<td class="td2"><input type="text" name="users.telephone"  value="${users.telephone}"/>
								</td>
								<td class="td3">&nbsp;&nbsp;*</td>
							</tr>
						</table>
					</div>
					<div style="margin-top: 10px;margin-left: 350px;">
						<input type="button" value="返回" />
					</div>
				</form>
		
				<script type="text/javascript">
					$(function(){
						$("[type='button']").click(function(){
							window.location.href="findUsersByCondition";
						});
						$("input").attr("readonly","readonly");
					});
				</script>


				<div style="width: 200px;margin-left: 300px;margin-top: 10px;">
					
						<c:if test="${message=='新增成功'}">
							<h1 style="color: green">${message}</h1>
						</c:if>
						<c:if test="${message=='新增失败'}">
							<h1 style="color: red">${message}</h1>
						</c:if>
				</div>
		
		
		
			</div>
		
		</div>
	</div>

</body>
</html>
